Security Level Indicators
When you set up a session security options data structure, you must use theCodeVerifierOptions
type to specify which Java code should be run through the verifier before execution. The verifier checks to see that the Java code is valid and that it does not attempt any illegal actions that could affect the host platform.
enum CodeVerifierOptions { eDontCheckCode = 0, eCheckRemoteCode, eCheckAllCode };Constant descriptions
In addition, you must also use the
eDontCheckCode
- Don't verify any code.
eCheckRemoteCode
Verify any code that is read from a network.
eCheckAllCode
- Verify all code.
NetworkSecurityOptions
type to specify the security level allowed for applets accessing a network.
enum NetworkSecurityOptions { eNoNetworkAccess = 0, eAppletHostAccess, eUnrestrictedAccess };Constant descriptions
Finally you must use the
eNoNetworkAccess
- Applets have no access to networks.
eAppletHostAccess
- An applet may access only its host server.
eUnrestrictedAccess
- Applets have unrestricted access to all networks.
FileSystemOptions
type to specify the security level allowed for applets accessing the local file system.
enum FileSystemOptions { eNoFSAccess = 0, eLocalAppletAccess, eAllFSAccess };Constant descriptions
See "Session Security Options Structure" (page 45) for more information about using these three security indicator types.
eNoFSAccess
- Applets have no access to the local file system.
eLocalAppletAccess
- Only applets that are stored locally may access the local file system.
eAllFSAccess
- All applets have access to the local file system.